package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户对象 client
 * 
 * @author ruoyi
 * @date 2024-06-06
 */
public class Client extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 客户id */
    @Excel(name = "客户id")
    private Long cid;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String clientName;

    /** 地址 */
    @Excel(name = "地址")
    private String clientAddress;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private Long clientPay;

    /** 状态 */
    @Excel(name = "状态")
    private Long clientStatus;

    /** 手机号 */
    @Excel(name = "手机号")
    private String clientPhone;

    /** 上次进货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次进货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastPurchaseDate;

    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setClientName(String clientName) 
    {
        this.clientName = clientName;
    }

    public String getClientName() 
    {
        return clientName;
    }
    public void setClientAddress(String clientAddress) 
    {
        this.clientAddress = clientAddress;
    }

    public String getClientAddress() 
    {
        return clientAddress;
    }
    public void setClientPay(Long clientPay) 
    {
        this.clientPay = clientPay;
    }

    public Long getClientPay() 
    {
        return clientPay;
    }
    public void setClientStatus(Long clientStatus) 
    {
        this.clientStatus = clientStatus;
    }

    public Long getClientStatus() 
    {
        return clientStatus;
    }
    public void setClientPhone(String clientPhone) 
    {
        this.clientPhone = clientPhone;
    }

    public String getClientPhone() 
    {
        return clientPhone;
    }
    public void setLastPurchaseDate(Date lastPurchaseDate) 
    {
        this.lastPurchaseDate = lastPurchaseDate;
    }

    public Date getLastPurchaseDate() 
    {
        return lastPurchaseDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cid", getCid())
            .append("clientName", getClientName())
            .append("clientAddress", getClientAddress())
            .append("clientPay", getClientPay())
            .append("clientStatus", getClientStatus())
            .append("clientPhone", getClientPhone())
            .append("lastPurchaseDate", getLastPurchaseDate())
            .toString();
    }
}
